export function removeStringValues(
  obj: any,
  onFor: (result: Record<string, any>) => void,
): Record<string, any> {
  const result: Record<string, any> = {};
  for (const key in obj) {
    if (obj.hasOwnProperty(key) && typeof obj[key] === "object") {
      result[key] = obj[key];
      onFor(result[key]);
    }
  }
  return result;
}
